package org.apache.commons.exec;

import java.util.Date;
import java.util.Scanner;

public class MockProcess {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		while(true) {
			String line = scanner.nextLine();
			if(line.equals("Q")) {
				break;
			}
			System.out.println(new Date()+line);
		}
		scanner.close();
	}
}
